<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>GSoC2011SfM: OpencvSfM::MotionProcessor Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">GSoC2011SfM
   &#160;<span id="projectnumber">0.1</span>
   </div>
   <div id="projectbrief">Google Summer of Code 2011: Structure from motion</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>OpencvSfM</b>      </li>
      <li class="navelem"><a class="el" href="class_opencv_sf_m_1_1_motion_processor.html">MotionProcessor</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a>  </div>
  <div class="headertitle">
<div class="title">OpencvSfM::MotionProcessor Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="OpencvSfM::MotionProcessor" -->
<p>This class try to create a commun interface for files loading. Indeed, if you want to use webcam, avi file of list of files, you will have to do some annoying processing, like iterate the different files of the directory. With <a class="el" href="class_opencv_sf_m_1_1_motion_processor.html" title="This class try to create a commun interface for files loading. Indeed, if you want to use webcam...">MotionProcessor</a>, you can now use a folder of image the same way you use a webcam or a video file.  
 <a href="class_opencv_sf_m_1_1_motion_processor.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_motion_processor_8h_source.html">MotionProcessor.h</a>&gt;</code></p>

<p><a href="class_opencv_sf_m_1_1_motion_processor-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_opencv_sf_m_1_1_motion_processor.html#a30629fa0a0f3f9a941a97a27c618e22a">isBidirectional</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_opencv_sf_m_1_1_motion_processor.html#a7a14674a19924a56943e9887f0895dee">setInputSource</a> (int idWebCam)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_opencv_sf_m_1_1_motion_processor.html#a297d734c62329988c34c06ef007c0532">setInputSource</a> (std::vector&lt; std::string &gt; list_images)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_opencv_sf_m_1_1_motion_processor.html#ae590078740f3cbdd3f32f403f0044c2e">setInputSource</a> (std::string nameOfFile, TypeOfMotionProcessor inputType=IS_SINGLE_FILE)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_opencv_sf_m_1_1_motion_processor.html#a3afbdfe67a99a1484e7c64d5f7a2c3b2">setInputSource</a> (std::string prefix, std::string suffix, int startNumber=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">cv::Mat&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_opencv_sf_m_1_1_motion_processor.html#abc9166f0cc101aa7eeae14643f7e2674">getFrame</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_opencv_sf_m_1_1_motion_processor.html#a32865291f286da0855b6aee7f726fa77">setProperty</a> (int idProp, double value)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_opencv_sf_m_1_1_motion_processor.html#a6528cf81ad216d235aa6e2b504384ce6">getProperty</a> (int idProp)</td></tr>
<tr><td colspan="2"><h2><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9bf4bec388b8e54cd70c21ab96d44dd3"></a><!-- doxytag: member="OpencvSfM::MotionProcessor::type_of_input_" ref="a9bf4bec388b8e54cd70c21ab96d44dd3" args="" -->
TypeOfMotionProcessor&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_opencv_sf_m_1_1_motion_processor.html#a9bf4bec388b8e54cd70c21ab96d44dd3">type_of_input_</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">This attribut is used to know which type is the input ( webcam, video file, list of file or just one image ) <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a90a1928ed4cc3a9dac1e6468fcd52634"></a><!-- doxytag: member="OpencvSfM::MotionProcessor::capture_" ref="a90a1928ed4cc3a9dac1e6468fcd52634" args="" -->
cv::VideoCapture&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_opencv_sf_m_1_1_motion_processor.html#a90a1928ed4cc3a9dac1e6468fcd52634">capture_</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">When the camera is attached to an avi file or webcam, this will be usefull to get frame... <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa13299a7af4a16c9403a7cc68313a523"></a><!-- doxytag: member="OpencvSfM::MotionProcessor::nameOfFiles_" ref="aa13299a7af4a16c9403a7cc68313a523" args="" -->
std::vector&lt; std::string &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_opencv_sf_m_1_1_motion_processor.html#aa13299a7af4a16c9403a7cc68313a523">nameOfFiles_</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">If the motion processor use directory as input, we store here the names of files. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_opencv_sf_m_1_1_motion_processor.html#a9bb3fdc8916e6d6c00a7a81408a6bbfd">sourceName_</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_opencv_sf_m_1_1_motion_processor.html#abbf053cdaf47914a5fe9d5c918d81358">suffix_</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_opencv_sf_m_1_1_motion_processor.html#ae4e50c101f03493306dce261283bdbb3">pos_in_loading_process_</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab63e8294f6fdd2491b2bb06788278bfe"></a><!-- doxytag: member="OpencvSfM::MotionProcessor::numFrame_" ref="ab63e8294f6fdd2491b2bb06788278bfe" args="" -->
unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_opencv_sf_m_1_1_motion_processor.html#ab63e8294f6fdd2491b2bb06788278bfe">numFrame_</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">When the camera is attached to a list of file, numFrame_ will be used to know how many frames we have take. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2bb96b3fcac0b97f4ac1300b45a62338"></a><!-- doxytag: member="OpencvSfM::MotionProcessor::wantedWidth_" ref="a2bb96b3fcac0b97f4ac1300b45a62338" args="" -->
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_opencv_sf_m_1_1_motion_processor.html#a2bb96b3fcac0b97f4ac1300b45a62338">wantedWidth_</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">if below 0, represent the wanted width of Mat returned by <a class="el" href="class_opencv_sf_m_1_1_motion_processor.html#abc9166f0cc101aa7eeae14643f7e2674">getFrame( )</a>; <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a830a9edd5325e704b3bce8ed3ecffdba"></a><!-- doxytag: member="OpencvSfM::MotionProcessor::wantedHeight_" ref="a830a9edd5325e704b3bce8ed3ecffdba" args="" -->
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_opencv_sf_m_1_1_motion_processor.html#a830a9edd5325e704b3bce8ed3ecffdba">wantedHeight_</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">if below 0, represent the wanted height of Mat returned by <a class="el" href="class_opencv_sf_m_1_1_motion_processor.html#abc9166f0cc101aa7eeae14643f7e2674">getFrame( )</a>; <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uchar&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_opencv_sf_m_1_1_motion_processor.html#ab2e834efe3af08e185002f5903e4312d">convertToRGB_</a></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>This class try to create a commun interface for files loading. Indeed, if you want to use webcam, avi file of list of files, you will have to do some annoying processing, like iterate the different files of the directory. With <a class="el" href="class_opencv_sf_m_1_1_motion_processor.html" title="This class try to create a commun interface for files loading. Indeed, if you want to use webcam...">MotionProcessor</a>, you can now use a folder of image the same way you use a webcam or a video file. </p>
<p>The class is still in development as the way to open folder is not really clear... The easy way would be to use "dirent.h" header, but the easy thing is not always the best thing... </p>

<p>Definition at line <a class="el" href="_motion_processor_8h_source.html#l00028">28</a> of file <a class="el" href="_motion_processor_8h_source.html">MotionProcessor.h</a>.</p>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="abc9166f0cc101aa7eeae14643f7e2674"></a><!-- doxytag: member="OpencvSfM::MotionProcessor::getFrame" ref="abc9166f0cc101aa7eeae14643f7e2674" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::Mat OpencvSfM::MotionProcessor::getFrame </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>use this method if you want to get a picture from this motion handler </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>The current frame. If the video is finished, the Mat returned is not usable! Test if the matrix is empty before using it! </dd></dl>

<p>Definition at line <a class="el" href="_motion_processor_8cpp_source.html#l00131">131</a> of file <a class="el" href="_motion_processor_8cpp_source.html">MotionProcessor.cpp</a>.</p>

<p>Referenced by <a class="el" href="_sequence_analyzer_8cpp_source.html#l00025">OpencvSfM::SequenceAnalyzer::SequenceAnalyzer()</a>.</p>

</div>
</div>
<a class="anchor" id="a6528cf81ad216d235aa6e2b504384ce6"></a><!-- doxytag: member="OpencvSfM::MotionProcessor::getProperty" ref="a6528cf81ad216d235aa6e2b504384ce6" args="(int idProp)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double OpencvSfM::MotionProcessor::getProperty </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>idProp</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>use this method to get actual properties of pictures retrived by this <a class="el" href="class_opencv_sf_m_1_1_motion_processor.html" title="This class try to create a commun interface for files loading. Indeed, if you want to use webcam...">MotionProcessor</a>. the properties are the same than VideoCapture ( see <a href="http://opencv.willowgarage.com/documentation/cpp/reading_and_writing_images_and_video.html#cv-videocapture-get">http://opencv.willowgarage.com/documentation/cpp/reading_and_writing_images_and_video.html#cv-videocapture-get</a> ) </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">idProp</td><td>Property identifier </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the value of the property </dd></dl>

<p>Definition at line <a class="el" href="_motion_processor_8cpp_source.html#l00302">302</a> of file <a class="el" href="_motion_processor_8cpp_source.html">MotionProcessor.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a30629fa0a0f3f9a941a97a27c618e22a"></a><!-- doxytag: member="OpencvSfM::MotionProcessor::isBidirectional" ref="a30629fa0a0f3f9a941a97a27c618e22a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool OpencvSfM::MotionProcessor::isBidirectional </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Use this function to know if this flux is bidirectional ( i.e. frames can be iterate randomly ) Can be used to know if the sequence is finite </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true is you can access to frames randomly, false else </dd></dl>

<p>Definition at line <a class="el" href="_motion_processor_8h_source.html#l00069">69</a> of file <a class="el" href="_motion_processor_8h_source.html">MotionProcessor.h</a>.</p>

<p>Referenced by <a class="el" href="_sequence_analyzer_8cpp_source.html#l00025">OpencvSfM::SequenceAnalyzer::SequenceAnalyzer()</a>.</p>

</div>
</div>
<a class="anchor" id="a7a14674a19924a56943e9887f0895dee"></a><!-- doxytag: member="OpencvSfM::MotionProcessor::setInputSource" ref="a7a14674a19924a56943e9887f0895dee" args="(int idWebCam)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool OpencvSfM::MotionProcessor::setInputSource </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>idWebCam</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>You can attach this motion handler to a webcam use this method to set it as the input source! </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">idWebCam</td><td>id of the webcam </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if input source opened without problems </dd></dl>

<p>Definition at line <a class="el" href="_motion_processor_8cpp_source.html#l00057">57</a> of file <a class="el" href="_motion_processor_8cpp_source.html">MotionProcessor.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a297d734c62329988c34c06ef007c0532"></a><!-- doxytag: member="OpencvSfM::MotionProcessor::setInputSource" ref="a297d734c62329988c34c06ef007c0532" args="(std::vector&lt; std::string &gt; list_images)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool OpencvSfM::MotionProcessor::setInputSource </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; std::string &gt;&#160;</td>
          <td class="paramname"><em>list_images</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>You can attach this motion handler to a list of picture use this method to set it as the input source! </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">list_images</td><td>list of pictures' names </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if input source opened without problems </dd></dl>

<p>Definition at line <a class="el" href="_motion_processor_8cpp_source.html#l00073">73</a> of file <a class="el" href="_motion_processor_8cpp_source.html">MotionProcessor.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ae590078740f3cbdd3f32f403f0044c2e"></a><!-- doxytag: member="OpencvSfM::MotionProcessor::setInputSource" ref="ae590078740f3cbdd3f32f403f0044c2e" args="(std::string nameOfFile, TypeOfMotionProcessor inputType=IS_SINGLE_FILE)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool OpencvSfM::MotionProcessor::setInputSource </td>
          <td>(</td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>nameOfFile</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">TypeOfMotionProcessor&#160;</td>
          <td class="paramname"><em>inputType</em> = <code>IS_SINGLE_FILE</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>You can attach this motion handler to a video file or a single picture. use this method to set it as the input source! </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">nameOfFile</td><td>name of the media file ( picture or avi movie ) </td></tr>
    <tr><td class="paramname">inputType</td><td>type of input ( can be either IS_DIRECTORY, IS_VIDEO or IS_SINGLE_FILE ) </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if input source opened without problems </dd></dl>

<p>Definition at line <a class="el" href="_motion_processor_8cpp_source.html#l00081">81</a> of file <a class="el" href="_motion_processor_8cpp_source.html">MotionProcessor.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a3afbdfe67a99a1484e7c64d5f7a2c3b2"></a><!-- doxytag: member="OpencvSfM::MotionProcessor::setInputSource" ref="a3afbdfe67a99a1484e7c64d5f7a2c3b2" args="(std::string prefix, std::string suffix, int startNumber=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool OpencvSfM::MotionProcessor::setInputSource </td>
          <td>(</td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>prefix</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>suffix</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>startNumber</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>You can attach this motion handler to a list of file. use this method to set the input source! For example, if the files are img1.jpg, img2.jpg, ... img125.jpg, prefix will be equal to "img", suffix to ".jpg" and startNumber equal to 1 </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">prefix</td><td>the part of the files names which stay the same ( img ) </td></tr>
    <tr><td class="paramname">suffix</td><td>the type of the files ( .jpg for instance ) </td></tr>
    <tr><td class="paramname">startNumber</td><td>the first number to use... </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if input source opened without problems </dd></dl>

<p>Definition at line <a class="el" href="_motion_processor_8cpp_source.html#l00120">120</a> of file <a class="el" href="_motion_processor_8cpp_source.html">MotionProcessor.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a32865291f286da0855b6aee7f726fa77"></a><!-- doxytag: member="OpencvSfM::MotionProcessor::setProperty" ref="a32865291f286da0855b6aee7f726fa77" args="(int idProp, double value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool OpencvSfM::MotionProcessor::setProperty </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>idProp</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>use this method to change the properties of pictures retrived by this <a class="el" href="class_opencv_sf_m_1_1_motion_processor.html" title="This class try to create a commun interface for files loading. Indeed, if you want to use webcam...">MotionProcessor</a>. the properties are the same than VideoCapture ( see <a href="http://opencv.willowgarage.com/documentation/cpp/reading_and_writing_images_and_video.html#cv-videocapture-get">http://opencv.willowgarage.com/documentation/cpp/reading_and_writing_images_and_video.html#cv-videocapture-get</a> ) </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">idProp</td><td>Property identifier </td></tr>
    <tr><td class="paramname">value</td><td>new value of the property </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_motion_processor_8cpp_source.html#l00227">227</a> of file <a class="el" href="_motion_processor_8cpp_source.html">MotionProcessor.cpp</a>.</p>

<p>Referenced by <a class="el" href="_sequence_analyzer_8cpp_source.html#l00025">OpencvSfM::SequenceAnalyzer::SequenceAnalyzer()</a>.</p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="ab2e834efe3af08e185002f5903e4312d"></a><!-- doxytag: member="OpencvSfM::MotionProcessor::convertToRGB_" ref="ab2e834efe3af08e185002f5903e4312d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uchar <a class="el" href="class_opencv_sf_m_1_1_motion_processor.html#ab2e834efe3af08e185002f5903e4312d">OpencvSfM::MotionProcessor::convertToRGB_</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>if &gt;0 the loaded image is forced to be a 3-channel color image if =0 the loaded image is forced to be grayscale if &lt;0 the loaded image will be loaded as-is </p>

<p>Definition at line <a class="el" href="_motion_processor_8h_source.html#l00058">58</a> of file <a class="el" href="_motion_processor_8h_source.html">MotionProcessor.h</a>.</p>

</div>
</div>
<a class="anchor" id="ae4e50c101f03493306dce261283bdbb3"></a><!-- doxytag: member="OpencvSfM::MotionProcessor::pos_in_loading_process_" ref="ae4e50c101f03493306dce261283bdbb3" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="class_opencv_sf_m_1_1_motion_processor.html#ae4e50c101f03493306dce261283bdbb3">OpencvSfM::MotionProcessor::pos_in_loading_process_</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>When the camera is attached to a list of file, pos_in_loading_process_ will be used to store actual number of image ( not always the same than numFrame_ ). </p>

<p>Definition at line <a class="el" href="_motion_processor_8h_source.html#l00048">48</a> of file <a class="el" href="_motion_processor_8h_source.html">MotionProcessor.h</a>.</p>

</div>
</div>
<a class="anchor" id="a9bb3fdc8916e6d6c00a7a81408a6bbfd"></a><!-- doxytag: member="OpencvSfM::MotionProcessor::sourceName_" ref="a9bb3fdc8916e6d6c00a7a81408a6bbfd" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string <a class="el" href="class_opencv_sf_m_1_1_motion_processor.html#a9bb3fdc8916e6d6c00a7a81408a6bbfd">OpencvSfM::MotionProcessor::sourceName_</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>When the camera is attached to a list of file, sourceName_ will be used to store name of the prefix. For example, if the files are img1.jpg, img2.jpg, ... img125.jpg, sourceName_ will be equal to img </p>

<p>Definition at line <a class="el" href="_motion_processor_8h_source.html#l00038">38</a> of file <a class="el" href="_motion_processor_8h_source.html">MotionProcessor.h</a>.</p>

</div>
</div>
<a class="anchor" id="abbf053cdaf47914a5fe9d5c918d81358"></a><!-- doxytag: member="OpencvSfM::MotionProcessor::suffix_" ref="abbf053cdaf47914a5fe9d5c918d81358" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string <a class="el" href="class_opencv_sf_m_1_1_motion_processor.html#abbf053cdaf47914a5fe9d5c918d81358">OpencvSfM::MotionProcessor::suffix_</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>When the camera is attached to a list of file, suffix_ will be used to store name of the suffix. For example, if the files are img1.jpg, img2.jpg, ... img125.jpg, suffix_ will be equal to .jpg </p>

<p>Definition at line <a class="el" href="_motion_processor_8h_source.html#l00043">43</a> of file <a class="el" href="_motion_processor_8h_source.html">MotionProcessor.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>D:/Travail/These/Determination caracteristiques camera/GSoC/SfM/src/<a class="el" href="_motion_processor_8h_source.html">MotionProcessor.h</a></li>
<li>D:/Travail/These/Determination caracteristiques camera/GSoC/SfM/src/<a class="el" href="_motion_processor_8cpp_source.html">MotionProcessor.cpp</a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Sun Aug 21 2011 16:45:53 for GSoC2011SfM by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
